<?php

namespace app\im\controller;

use app\im\service\UserService;

class Login extends Controller
{
    public function index()
    {
        $account = input('account', '');
        $password = input('password', '');
        $res = (new UserService())->login($account, $password);
        return resp_success($res, '登陆成功');
    }
}
